<style type="text/css">
  @import "<?php print base_path(); ?>js/dojox/image/resources/image.css";
</style>

<script type="text/javascript">
  dojo.require("dojox.image.Gallery");
  dojo.require("dojo.data.ItemFileReadStore");
  dojo.require("dojo.parser");
</script>

<div id="lb_galleria-container">
  <div class="inner" dojoType="dojox.image.Gallery" imageWidth="<?php print $width; ?>" imageHeight="<?php print $height; ?>">
    <script type="dojo/connect">
      var dataItems = <?php print $json_string?>;
      var imageItemStore = new dojo.data.ItemFileReadStore({data: dataItems});
      var itemRequest = {
        query: {},
        count: 20
      };
      var itemNameMap = {
        imageThumbAttr: "thumb",
        imageLargeAttr: "large"
      };
      this.setDataStore(imageItemStore, itemRequest, itemNameMap);
    </script>
  </div>
</div>
